package com.sc.nft.entity.vo;

import com.sc.nft.enums.task.ParticipantsEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 分享购活动VO
 *
 * @author liGen
 * @version 1.0
 * @date 2023/12/11 10:53 上午
 */
@Data
public class EditMallActivityShareVO {

    @ApiModelProperty(value = "主键ID")
    Long id;

    @ApiModelProperty(value = "营销活动ID")
    @NotNull(message = "营销活动ID不能为空！")
    private Long activityId;

    @ApiModelProperty(value = "有效分钟")
    @NotNull(message = "请选择拼团有效期！")
    private Integer validMinute;

    @ApiModelProperty(value = "最低订单数量")
    @NotNull(message = "请输入最低单数！")
    private Integer minOrderNum;

    @ApiModelProperty(value = "团长奖励比例 输入小数 百分之一百为1")
    @NotNull(message = "请输入奖励比例！")
    private BigDecimal rewardPercentage;

    @ApiModelProperty(value = "详细规则")
    @NotBlank(message = "请输入详细规则！")
    private String detailedRules;

    @ApiModelProperty(value = "指定NFT")
    private ParticipantsEnum participants;

    @ApiModelProperty(value = "藏品Id")
    private Long collectionId;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "分享购活动规格列表")
    @NotNull(message = "分享购活动规格列表不能为空！")
    private List<EditMallActivityShareSpecsVO> mallActivityShareSpecsVOList;

}
